﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HSJM.Service.MWS.Utility
{
    public class OperationMenuData
    {
        public string FunctionalModule { set; get; }
        public string ActionName { set; get; }
        public string ActionPath { set; get; } = "";
        public string FunctionDesc { set; get; }
        public string ControllerName { set; get; }
    }

    public class OperationLogInfo
    {
        public static List<OperationMenuData> OperationMenuDatas { set; get; }

        static OperationLogInfo()
        {
            OperationMenuDatas = new List<OperationMenuData>();
            InitMenuData();
        }

        private static void InitMenuData()
        {
            // 基础管理
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "BusinessDictionaryType", FunctionalModule = "字典类型" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "BusinessDictonary", FunctionalModule = "字典" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "ThirdPartApiSet", FunctionalModule = "第三方接口" });

            // 物料管理
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "MaterialTrayProductBind", FunctionalModule = "物料绑定" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Product", FunctionalModule = "产品信息" });

            //工艺管理
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "CompleteProcessRouteBind", FunctionalModule = "产品绑定工艺路线" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "NGProcessRouteBind", FunctionalModule = "NG工艺路线绑定" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "ProcessRoute", FunctionalModule = "工艺路线" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "StationBindRoute", FunctionalModule = "工站绑定工艺路线" });
            // 车间管理
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Button", FunctionalModule = "按钮信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Gallery", FunctionalModule = "巷道信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "MainStation", FunctionalModule = "主工站信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "ProductionLine", FunctionalModule = "产线信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Rack", FunctionalModule = "货架信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Storage", FunctionalModule = "库位信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "SubStation", FunctionalModule = "子工站信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Warehouse", FunctionalModule = "仓库信息" });
            OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "WorkShop", FunctionalModule = "车间信息" });
            // OperationMenuDatas.Add(new OperationMenuData() { ControllerName = "Task", ActionName = "WcsInTaskApply", ActionPath = "/Task/WcsInTaskApply", FunctionDesc = "任务管理-预入库申请", FunctionalModule = "任务管理" });
        }
    }
}
